const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // 用户头像
  avatar: state => state.user.userInfo.avatar,
  // 用户名
  username: state => state.user.userInfo.username,
  // 用户ID
  userId:state=>state.user.userInfo.id,
  // 左侧菜单列表
  menuList:state=>state.menu.menuList
}
export default getters
